home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / EMACS.14 < prev    next >
Text File  |  1993-03-28  |  43KB  |  923 lines

  1. Info file ../info/emacs, produced by Makeinfo, -*- Text -*- from input
  2. file lemacs.tex.
  3.  
  4.    This file documents the GNU Emacs editor.
  5.  
  6.    Copyright (C) 1985, 1986, 1988 Richard M. Stallman.  Copyright (C)
  7. 1991, 1992 Lucid, Inc.
  8.  
  9.    Permission is granted to make and distribute verbatim copies of
  10. this manual provided the copyright notice and this permission notice
  11. are preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided also
  15. that the sections entitled "The GNU Manifesto", "Distribution" and "GNU
  16. General Public License" are included exactly as in the original, and
  17. provided that the entire resulting derived work is distributed under
  18. the terms of a permission notice identical to this one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled "The GNU Manifesto",
  23. "Distribution" and "GNU General Public License" may be included in a
  24. translation approved by the author instead of in the original English.
  25.  
  26. 
  27. File: emacs,  Node: Quitting,  Next: Lossage,  Prev: Customization,  Up: Top
  28.  
  29. Quitting and Aborting
  30. =====================
  31.  
  32. `C-g'
  33.      Quit.  Cancel running or partially typed command.
  34.  
  35. `C-]'
  36.      Abort innermost recursive editing level and cancel the command
  37.      which invoked it (`abort-recursive-edit').
  38.  
  39. `M-x top-level'
  40.      Abort all recursive editing levels that are currently executing.
  41.  
  42. `C-x u'
  43.      Cancel an already-executed command, usually (`undo').
  44.  
  45.    There are two ways of cancelling commands which are not finished
  46. executing: "quitting" with `C-g', and "aborting" with `C-]' or `M-x
  47. top-level'.  Quitting is cancelling a partially typed command or one
  48. which is already running.  Aborting is getting out of a recursive
  49. editing level and cancelling the command that invoked the recursive
  50. edit.
  51.  
  52.    Quitting with `C-g' is used for getting rid of a partially typed
  53. command, or a numeric argument that you don't want.  It also stops a
  54. running command in the middle in a relatively safe way, so you can use
  55. it if you accidentally start executing a command that takes a long
  56. time.  In particular, it is safe to quit out of killing; either your
  57. text will ALL still be there, or it will ALL be in the kill ring (or
  58. maybe both).  Quitting an incremental search does special things
  59. documented under searching; in general, it may take two successive
  60. `C-g' characters to get out of a search.  `C-g' works by setting the
  61. variable `quit-flag' to `t' the instant `C-g' is typed; Emacs Lisp
  62. checks this variable frequently and quits if it is non-`nil'.  `C-g'
  63. is only actually executed as a command if it is typed while Emacs is
  64. waiting for input.
  65.  
  66.    If you quit twice in a row before the first `C-g' is recognized, you
  67. activate the "emergency escape" feature and return to the shell. 
  68. *Note Emergency Escape::.
  69.  
  70.    You can use `C-]' (`abort-recursive-edit') to get out of a
  71. recursive editing level and cancel the command which invoked it. 
  72. Quitting with `C-g' does not do this, and could not do this, because it
  73. is used to cancel a partially typed command within the recursive
  74. editing level.  Both operations are useful.  For example, if you are
  75. in the Emacs debugger (*note Lisp Debug::.) and have typed `C-u 8' to
  76. enter a numeric argument, you can cancel that argument with `C-g' and
  77. remain in the debugger.
  78.  
  79.    The command `M-x top-level' is equivalent to "enough" `C-]'
  80. commands to get you out of all the levels of recursive edits that you
  81. are in.  `C-]' only gets you out one level at a time, but `M-x
  82. top-level' goes out all levels at once.  Both `C-]' and `M-x
  83. top-level' are like all other commands, and unlike `C-g', in that they
  84. are effective only when Emacs is ready for a command.  `C-]' is an
  85. ordinary key and has its meaning only because of its binding in the
  86. keymap.  *Note Recursive Edit::.
  87.  
  88.    `C-x u' (`undo') is not strictly speaking a way of cancelling a
  89. command, but you can think of it as cancelling a command already
  90. finished executing.  *Note Undo::.
  91.  
  92. 
  93. File: emacs,  Node: Lossage,  Next: Bugs,  Prev: Quitting,  Up: Top
  94.  
  95. Dealing with Emacs Trouble
  96. ==========================
  97.  
  98.    This section describes various conditions in which Emacs fails to
  99. work, and how to recognize them and correct them.
  100.  
  101. * Menu:
  102.  
  103. * Stuck Recursive::    `[...]' in mode line around the parentheses
  104. * Screen Garbled::     Garbage on the screen
  105. * Text Garbled::       Garbage in the text
  106. * Unasked-for Search:: Spontaneous entry to incremental search
  107. * Emergency Escape::   Emergency escape--
  108.                         What to do if Emacs stops responding
  109. * Total Frustration::  When you are at your wits' end.
  110.  
  111. 
  112. File: emacs,  Node: Stuck Recursive,  Next: Screen Garbled,  Prev: Lossage,  Up: Lossage
  113.  
  114. Recursive Editing Levels
  115. ------------------------
  116.  
  117.    Recursive editing levels are important and useful features of
  118. Emacs, but they can seem like malfunctions to the user who does not
  119. understand them.
  120.  
  121.    If the mode line has square brackets `[...]' around the parentheses
  122. that contain the names of the major and minor modes, you have entered a
  123. recursive editing level.  If you did not do this on purpose, or if you
  124. don't understand what that means, you should just get out of the
  125. recursive editing level.  To do so, type `M-x top-level'.  This is
  126. called getting back to top level.  *Note Recursive Edit::.
  127.  
  128. 
  129. File: emacs,  Node: Screen Garbled,  Next: Text Garbled,  Prev: Stuck Recursive,  Up: Lossage
  130.  
  131. Garbage on the Screen
  132. ---------------------
  133.  
  134.    If the data on the screen looks wrong, the first thing to do is see
  135. whether the text is actually wrong.  Type `C-l', to redisplay the
  136. entire screen.  If the text appears correct after this, the problem was
  137. entirely in the previous screen update.
  138.  
  139.    Display updating problems often result from an incorrect termcap
  140. entry for the terminal you are using.  The file `etc/TERMS' in the
  141. Emacs distribution gives the fixes for known problems of this sort. 
  142. `INSTALL' contains general advice for these problems in one of its
  143. sections.  Very likely there is simply insufficient padding for certain
  144. display operations.  To investigate the possibility that you have this
  145. sort of problem, try Emacs on another terminal made by a different
  146. manufacturer.  If problems happen frequently on one kind of terminal
  147. but not another kind, the real problem is likely to be a bad termcap
  148. entry, though it could also be due to a bug in Emacs that appears for
  149. terminals that have or that lack specific features.
  150.  
  151. 
  152. File: emacs,  Node: Text Garbled,  Next: Unasked-for Search,  Prev: Screen Garbled,  Up: Lossage
  153.  
  154. Garbage in the Text
  155. -------------------
  156.  
  157.    If `C-l' shows that the text is wrong, try undoing the changes to it
  158. using `C-x u' until it gets back to a state you consider correct.  Also
  159. try `C-h l' to find out what command you typed to produce the observed
  160. results.
  161.  
  162.    If a large portion of text appears to be missing at the beginning or
  163. end of the buffer, check for the word `Narrow' in the mode line.  If
  164. it appears, the text is still present, but marked off-limits.  To make
  165. it visible again, type `C-x w'.  *Note Narrowing::.
  166.  
  167. 
  168. File: emacs,  Node: Unasked-for Search,  Next: Emergency Escape,  Prev: Text Garbled,  Up: Lossage
  169.  
  170. Spontaneous Entry to Incremental Search
  171. ---------------------------------------
  172.  
  173.    If Emacs spontaneously displays `I-search:' at the bottom of the
  174. screen, it means that the terminal is sending `C-s' and `C-q'
  175. according to the poorly designed xon/xoff "flow control" protocol.  You
  176. should try to prevent this by putting the terminal in a mode where it
  177. will not use flow control or by giving it enough padding that it will
  178. never send a `C-s'.  If that cannot be done, you must tell Emacs to
  179. expect flow control to be used, until you can get a properly designed
  180. terminal.
  181.  
  182.    Information on how to do these things can be found in the file
  183. `INSTALL' in the Emacs distribution.
  184.  
  185. 
  186. File: emacs,  Node: Emergency Escape,  Next: Total Frustration,  Prev: Unasked-for Search,  Up: Lossage
  187.  
  188. Emergency Escape
  189. ----------------
  190.  
  191.    Because at times there have been bugs causing Emacs to loop without
  192. checking `quit-flag', a special feature causes Emacs to be suspended
  193. immediately if you type a second `C-g' while the flag is already set,
  194. so you can always get out of GNU Emacs.  Normally Emacs recognizes and
  195. clears `quit-flag' (and quits!) quickly enough to prevent this from
  196. happening.
  197.  
  198.    When you resume Emacs after a suspension caused by multiple `C-g',
  199. it asks two questions before going back to what it had been doing:
  200.  
  201.      Auto-save? (y or n)
  202.      Abort (and dump core)? (y or n)
  203.  
  204. Answer each one with `y' or `n' followed by RET.
  205.  
  206.    Saying `y' to `Auto-save?' causes immediate auto-saving of all
  207. modified buffers in which auto-saving is enabled.
  208.  
  209.    Saying `y' to `Abort (and dump core)?' causes an illegal
  210. instruction to be executed, dumping core.  This is to enable a wizard
  211. to figure out why Emacs was failing to quit in the first place. 
  212. Execution does not continue after a core dump.  If you answer `n',
  213. execution does continue.  With luck, Emacs will ultimately check
  214. `quit-flag' and quit normally.  If not, and you type another `C-g', it
  215. is suspended again.
  216.  
  217.    If Emacs is not really hung, just slow, you may invoke the double
  218. `C-g' feature without really meaning to.  Then just resume and answer
  219. `n' to both questions, and you will arrive at your former state. 
  220. Presumably the quit you requested will happen soon.
  221.  
  222.    The double-`C-g' feature may be turned off when Emacs is running
  223. under a window system, since the window system always enables you to
  224. kill Emacs or to create another window and run another program.
  225.  
  226. 
  227. File: emacs,  Node: Total Frustration,  Prev: Emergency Escape,  Up: Lossage
  228.  
  229. Help for Total Frustration
  230. --------------------------
  231.  
  232.    If using Emacs (or something else) becomes terribly frustrating and
  233. none of the techniques described above solve the problem, Emacs can
  234. still help you.
  235.  
  236.    First, if the Emacs you are using is not responding to commands,
  237. type `C-g C-g' to get out of it and then start a new one.
  238.  
  239.    Second, type `M-x doctor RET'.
  240.  
  241.    The doctor will make you feel better.  Each time you say something
  242. to the doctor, you must end it by typing RET RET.  This lets the
  243. doctor know you are finished.
  244.  
  245. 
  246. File: emacs,  Node: Bugs,  Next: Manifesto,  Prev: Lossage,  Up: Top
  247.  
  248. Reporting Bugs
  249. ==============
  250.  
  251.    Sometimes you will encounter a bug in Emacs.  Although we cannot
  252. promise we can or will fix the bug, and we might not even agree that
  253. it is a bug, we want to hear about bugs you encounter in case we do
  254. want to fix them.
  255.  
  256.    To make it possible for us to fix a bug, you must report it.  In
  257. order to do so effectively, you must know when and how to do it.
  258.  
  259. When Is There a Bug
  260. -------------------
  261.  
  262.    If Emacs executes an illegal instruction, or dies with an operating
  263. system error message that indicates a problem in the program (as
  264. opposed to something like "disk full"), then it is certainly a bug.
  265.  
  266.    If Emacs updates the display in a way that does not correspond to
  267. what is in the buffer, then it is certainly a bug.  If a command seems
  268. to do the wrong thing but the problem corrects itself if you type
  269. `C-l', it is a case of incorrect display updating.
  270.  
  271.    Taking forever to complete a command can be a bug, but you must make
  272. certain that it was really Emacs's fault.  Some commands simply take a
  273. long time.  Type `C-g' and then `C-h l' to see whether the input Emacs
  274. received was what you intended to type; if the input was such that you
  275. KNOW it should have been processed quickly, report a bug.  If you
  276. don't know whether the command should take a long time, find out by
  277. looking in the manual or by asking for assistance.
  278.  
  279.    If a command you are familiar with causes an Emacs error message in
  280. a case where its usual definition ought to be reasonable, it is
  281. probably a bug.
  282.  
  283.    If a command does the wrong thing, that is a bug.  But be sure you
  284. know for certain what it ought to have done.  If you aren't familiar
  285. with the command, or don't know for certain how the command is
  286. supposed to work, then it might actually be working right.  Rather
  287. than jumping to conclusions, show the problem to someone who knows for
  288. certain.
  289.  
  290.    Finally, a command's intended definition may not be best for editing
  291. with.  This is a very important sort of problem, but it is also a
  292. matter of judgment.  Also, it is easy to come to such a conclusion out
  293. of ignorance of some of the existing features.  It is probably best
  294. not to complain about such a problem until you have checked the
  295. documentation in the usual ways, feel confident that you understand
  296. it, and know for certain that what you want is not available.  If you
  297. are not sure what the command is supposed to do after a careful
  298. reading of the manual, check the index and glossary for any terms that
  299. may be unclear.  If you still do not understand, this indicates a bug
  300. in the manual.  The manual's job is to make everything clear.  It is
  301. just as important to report documentation bugs as program bugs.
  302.  
  303.    If the on-line documentation string of a function or variable
  304. disagrees with the manual, one of them must be wrong, so report the
  305. bug.
  306.  
  307. How to Report a Bug
  308. -------------------
  309.  
  310.    When you decide that there is a bug, it is important to report it
  311. and to report it in a way which is useful.  What is most useful is an
  312. exact description of what commands you type, starting with the shell
  313. command to run Emacs, until the problem happens.  Always include the
  314. version number of Emacs that you are using; type `M-x emacs-version'
  315. to print this.
  316.  
  317.    The most important principle in reporting a bug is to report FACTS,
  318. not hypotheses or categorizations.  It is always easier to report the
  319. facts, but people seem to prefer to strain to posit explanations and
  320. report them instead.  If the explanations are based on guesses about
  321. how Emacs is implemented, they will be useless; we will have to try to
  322. figure out what the facts must have been to lead to such speculations.
  323.  Sometimes this is impossible.  But in any case, it is unnecessary
  324. work for us.
  325.  
  326.    For example, suppose that you type `C-x C-f /glorp/baz.ugh RET',
  327. visiting a file which (you know) happens to be rather large, and Emacs
  328. prints out `I feel pretty today'.  The best way to report the bug is
  329. with a sentence like the preceding one, because it gives all the facts
  330. and nothing but the facts.
  331.  
  332.    Do not assume that the problem is due to the size of the file and
  333. say, "When I visit a large file, Emacs prints out `I feel pretty
  334. today'." This is what we mean by "guessing explanations".  The problem
  335. is just as likely to be due to the fact that there is a `z' in the
  336. file name.  If this is so, then when we got your report, we would try
  337. out the problem with some "large file", probably with no `z' in its
  338. name, and not find anything wrong.  There is no way in the world that
  339. we could guess that we should try visiting a file with a `z' in its
  340. name.
  341.  
  342.    Alternatively, the problem might be due to the fact that the file
  343. starts with exactly 25 spaces.  For this reason, you should make sure
  344. that you inform us of the exact contents of any file that is needed to
  345. reproduce the bug.  What if the problem only occurs when you have
  346. typed the `C-x C-a' command previously?  This is why we ask you to
  347. give the exact sequence of characters you typed since starting to use
  348. Emacs.
  349.  
  350.    You should not even say "visit a file" instead of `C-x C-f' unless
  351. you know that it makes no difference which visiting command is used. 
  352. Similarly, rather than saying "if I have three characters on the line,"
  353. say "after I type `RET A B C RET C-p'," if that is the way you entered
  354. the text.
  355.  
  356.    If you are not in Fundamental mode when the problem occurs, you
  357. should say what mode you are in.
  358.  
  359.    If the manifestation of the bug is an Emacs error message, it is
  360. important to report not just the text of the error message but a
  361. backtrace showing how the Lisp program in Emacs arrived at the error. 
  362. To make the backtrace, you must execute the Lisp expression `(setq
  363. debug-on-error t)' before the error happens (that is to say, you must
  364. execute that expression and then make the bug happen).  This causes
  365. the Lisp debugger to run (*note Lisp Debug::.).  The debugger's
  366. backtrace can be copied as text into the bug report.  This use of the
  367. debugger is possible only if you know how to make the bug happen
  368. again.  Do note the error message the first time the bug happens, so
  369. if you can't make it happen again, you can report at least that.
  370.  
  371.    Check whether any programs you have loaded into the Lisp world,
  372. including your `.emacs' file, set any variables that may affect the
  373. functioning of Emacs.  Also, see whether the problem happens in a
  374. freshly started Emacs without loading your `.emacs' file (start Emacs
  375. with the `-q' switch to prevent loading the init file.)  If the
  376. problem does NOT occur then, it is essential that we know the contents
  377. of any programs that you must load into the Lisp world in order to
  378. cause the problem to occur.
  379.  
  380.    If the problem does depend on an init file or other Lisp programs
  381. that are not part of the standard Emacs system, then you should make
  382. sure it is not a bug in those programs by complaining to their
  383. maintainers first.  After they verify that they are using Emacs in a
  384. way that is supposed to work, they should report the bug.
  385.  
  386.    If you can tell us a way to cause the problem without visiting any
  387. files, please do so.  This makes it much easier to debug.  If you do
  388. need files, make sure you arrange for us to see their exact contents. 
  389. For example, it can often matter whether there are spaces at the ends
  390. of lines, or a newline after the last line in the buffer (nothing
  391. ought to care whether the last line is terminated, but tell that to
  392. the bugs).
  393.  
  394.    The easy way to record the input to Emacs precisely is to to write a
  395. dribble file; execute the Lisp expression
  396.  
  397.      (open-dribble-file "~/dribble")
  398.  
  399. using `Meta-ESC' or from the `*scratch*' buffer just after starting
  400. Emacs.  From then on, all Emacs input will be written in the specified
  401. dribble file until the Emacs process is killed.
  402.  
  403.    For possible display bugs, it is important to report the terminal
  404. type (the value of environment variable `TERM'), the complete termcap
  405. entry for the terminal from `/etc/termcap' (since that file is not
  406. identical on all machines), and the output that Emacs actually sent to
  407. the terminal.  The way to collect this output is to execute the Lisp
  408. expression
  409.  
  410.      (open-termscript "~/termscript")
  411.  
  412. using `Meta-ESC' or from the `*scratch*' buffer just after starting
  413. Emacs.  From then on, all output from Emacs to the terminal will be
  414. written in the specified termscript file as well, until the Emacs
  415. process is killed.  If the problem happens when Emacs starts up, put
  416. this expression into your `.emacs' file so that the termscript file
  417. will be open when Emacs displays the screen for the first time.  Be
  418. warned: it is often difficult, and sometimes impossible, to fix a
  419. terminal-dependent bug without access to a terminal of the type that
  420. stimulates the bug.
  421.  
  422.    The address for reporting bugs is
  423.  
  424. GNU Emacs Bugs
  425. Lucid, Inc.
  426. 707 Laurel Street
  427. Menlo Park, CA 94025
  428.  
  429. or send email to `sun!edsel!hotline' (Usenet)
  430.  
  431. or `hotline@lucid.com' (Internet).
  432.  
  433.    You can also call the Lucid hotline at the following numbers:
  434.  
  435. Phone:  (415) 327-1234
  436. FAX:    (415) 321-2680
  437.  
  438.    Once again, we do not promise to fix the bug; but if the bug is
  439. serious, or ugly, or easy to fix, chances are we will want to.
  440.  
  441. 
  442. File: emacs,  Node: Manifesto,  Prev: Bugs,  Up: Top
  443.  
  444. The GNU Manifesto
  445. *****************
  446.  
  447. What's GNU?  Gnu's Not Unix!
  448. ============================
  449.  
  450.    GNU, which stands for Gnu's Not Unix, is the name for the complete
  451. Unix-compatible software system which I am writing so that I can give
  452. it away free to everyone who can use it.  Several other volunteers are
  453. helping me.  Contributions of time, money, programs and equipment are
  454. greatly needed.
  455.  
  456.    So far we have an Emacs text editor with Lisp for writing editor
  457. commands, a source level debugger, a yacc-compatible parser generator,
  458. a linker, and around 35 utilities.  A shell (command interpreter) is
  459. nearly completed.  A new portable optimizing C compiler has compiled
  460. itself and may be released this year.  An initial kernel exists but
  461. many more features are needed to emulate Unix.  When the kernel and
  462. compiler are finished, it will be possible to distribute a GNU system
  463. suitable for program development.  We will use TeX as our text
  464. formatter, but an nroff is being worked on.  We will use the free,
  465. portable X window system as well.  After this we will add a portable
  466. Common Lisp, an Empire game, a spreadsheet, and hundreds of other
  467. things, plus on-line documentation.  We hope to supply, eventually,
  468. everything useful that normally comes with a Unix system, and more.
  469.  
  470.    GNU will be able to run Unix programs, but will not be identical to
  471. Unix.  We will make all improvements that are convenient, based on our
  472. experience with other operating systems.  In particular, we plan to
  473. have longer filenames, file version numbers, a crashproof file system,
  474. filename completion perhaps, terminal-independent display support, and
  475. perhaps eventually a Lisp-based window system through which several
  476. Lisp programs and ordinary Unix programs can share a screen.  Both C
  477. and Lisp will be available as system programming languages.  We will
  478. try to support UUCP, MIT Chaosnet, and Internet protocols for
  479. communication.
  480.  
  481.    GNU is aimed initially at machines in the 68000/16000 class with
  482. virtual memory, because they are the easiest machines to make it run
  483. on.  The extra effort to make it run on smaller machines will be left
  484. to someone who wants to use it on them.
  485.  
  486.    To avoid horrible confusion, please pronounce the `G' in the word
  487. `GNU' when it is the name of this project.
  488.  
  489. Why I Must Write GNU
  490. ====================
  491.  
  492.    I consider that the golden rule requires that if I like a program I
  493. must share it with other people who like it.  Software sellers want to
  494. divide the users and conquer them, making each user agree not to share
  495. with others.  I refuse to break solidarity with other users in this
  496. way.  I cannot in good conscience sign a nondisclosure agreement or a
  497. software license agreement.  For years I worked within the Artificial
  498. Intelligence Lab to resist such tendencies and other inhospitalities,
  499. but eventually they had gone too far: I could not remain in an
  500. institution where such things are done for me against my will.
  501.  
  502.    So that I can continue to use computers without dishonor, I have
  503. decided to put together a sufficient body of free software so that I
  504. will be able to get along without any software that is not free.  I
  505. have resigned from the AI lab to deny MIT any legal excuse to prevent
  506. me from giving GNU away.
  507.  
  508. Why GNU Will Be Compatible with Unix
  509. ====================================
  510.  
  511.    Unix is not my ideal system, but it is not too bad.  The essential
  512. features of Unix seem to be good ones, and I think I can fill in what
  513. Unix lacks without spoiling them.  And a system compatible with Unix
  514. would be convenient for many other people to adopt.
  515.  
  516. How GNU Will Be Available
  517. =========================
  518.  
  519.    GNU is not in the public domain.  Everyone will be permitted to
  520. modify and redistribute GNU, but no distributor will be allowed to
  521. restrict its further redistribution.  That is to say, proprietary
  522. modifications will not be allowed.  I want to make sure that all
  523. versions of GNU remain free.
  524.  
  525. Why Many Other Programmers Want to Help
  526. =======================================
  527.  
  528.    I have found many other programmers who are excited about GNU and
  529. want to help.
  530.  
  531.    Many programmers are unhappy about the commercialization of system
  532. software.  It may enable them to make more money, but it requires them
  533. to feel in conflict with other programmers in general rather than feel
  534. as comrades.  The fundamental act of friendship among programmers is
  535. the sharing of programs; marketing arrangements now typically used
  536. essentially forbid programmers to treat others as friends.  The
  537. purchaser of software must choose between friendship and obeying the
  538. law.  Naturally, many decide that friendship is more important.  But
  539. those who believe in law often do not feel at ease with either choice.
  540.  They become cynical and think that programming is just a way of
  541. making money.
  542.  
  543.    By working on and using GNU rather than proprietary programs, we
  544. can be hospitable to everyone and obey the law.  In addition, GNU
  545. serves as an example to inspire and a banner to rally others to join
  546. us in sharing.  This can give us a feeling of harmony which is
  547. impossible if we use software that is not free.  For about half the
  548. programmers I talk to, this is an important happiness that money
  549. cannot replace.
  550.  
  551. How You Can Contribute
  552. ======================
  553.  
  554.    I am asking computer manufacturers for donations of machines and
  555. money.  I'm asking individuals for donations of programs and work.
  556.  
  557.    One consequence you can expect if you donate machines is that GNU
  558. will run on them at an early date.  The machines should be complete,
  559. ready to use systems, approved for use in a residential area, and not
  560. in need of sophisticated cooling or power.
  561.  
  562.    I have found very many programmers eager to contribute part-time
  563. work for GNU.  For most projects, such part-time distributed work
  564. would be very hard to coordinate; the independently-written parts
  565. would not work together.  But for the particular task of replacing
  566. Unix, this problem is absent.  A complete Unix system contains
  567. hundreds of utility programs, each of which is documented separately. 
  568. Most interface specifications are fixed by Unix compatibility.  If
  569. each contributor can write a compatible replacement for a single Unix
  570. utility, and make it work properly in place of the original on a Unix
  571. system, then these utilities will work right when put together.  Even
  572. allowing for Murphy to create a few unexpected problems, assembling
  573. these components will be a feasible task.  (The kernel will require
  574. closer communication and will be worked on by a small, tight group.)
  575.  
  576.    If I get donations of money, I may be able to hire a few people
  577. full or part time.  The salary won't be high by programmers'
  578. standards, but I'm looking for people for whom building community
  579. spirit is as important as making money.  I view this as a way of
  580. enabling dedicated people to devote their full energies to working on
  581. GNU by sparing them the need to make a living in another way.
  582.  
  583. Why All Computer Users Will Benefit
  584. ===================================
  585.  
  586.    Once GNU is written, everyone will be able to obtain good system
  587. software free, just like air.
  588.  
  589.    This means much more than just saving everyone the price of a Unix
  590. license.  It means that much wasteful duplication of system
  591. programming effort will be avoided.  This effort can go instead into
  592. advancing the state of the art.
  593.  
  594.    Complete system sources will be available to everyone.  As a
  595. result, a user who needs changes in the system will always be free to
  596. make them himself, or hire any available programmer or company to make
  597. them for him.  Users will no longer be at the mercy of one programmer
  598. or company which owns the sources and is in sole position to make
  599. changes.
  600.  
  601.    Schools will be able to provide a much more educational environment
  602. by encouraging all students to study and improve the system code. 
  603. Harvard's computer lab used to have the policy that no program could
  604. be installed on the system if its sources were not on public display,
  605. and upheld it by actually refusing to install certain programs.  I was
  606. very much inspired by this.
  607.  
  608.    Finally, the overhead of considering who owns the system software
  609. and what one is or is not entitled to do with it will be lifted.
  610.  
  611.    Arrangements to make people pay for using a program, including
  612. licensing of copies, always incur a tremendous cost to society through
  613. the cumbersome mechanisms necessary to figure out how much (that is,
  614. which programs) a person must pay for.  And only a police state can
  615. force everyone to obey them.  Consider a space station where air must
  616. be manufactured at great cost: charging each breather per liter of air
  617. may be fair, but wearing the metered gas mask all day and all night is
  618. intolerable even if everyone can afford to pay the air bill.  And the
  619. TV cameras everywhere to see if you ever take the mask off are
  620. outrageous.  It's better to support the air plant with a head tax and
  621. chuck the masks.
  622.  
  623.    Copying all or parts of a program is as natural to a programmer as
  624. breathing, and as productive.  It ought to be as free.
  625.  
  626. Some Easily Rebutted Objections to GNU's Goals
  627. ==============================================
  628.  
  629.      "Nobody will use it if it is free, because that means they can't
  630.      rely on any support."
  631.  
  632.      "You have to charge for the program to pay for providing the
  633.      support."
  634.  
  635.    If people would rather pay for GNU plus service than get GNU free
  636. without service, a company to provide just service to people who have
  637. obtained GNU free ought to be profitable.
  638.  
  639.    We must distinguish between support in the form of real programming
  640. work and mere handholding.  The former is something one cannot rely on
  641. from a software vendor.  If your problem is not shared by enough
  642. people, the vendor will tell you to get lost.
  643.  
  644.    If your business needs to be able to rely on support, the only way
  645. is to have all the necessary sources and tools.  Then you can hire any
  646. available person to fix your problem; you are not at the mercy of any
  647. individual.  With Unix, the price of sources puts this out of
  648. consideration for most businesses.  With GNU this will be easy.  It is
  649. still possible for there to be no available competent person, but this
  650. problem cannot be blamed on distibution arrangements.  GNU does not
  651. eliminate all the world's problems, only some of them.
  652.  
  653.    Meanwhile, the users who know nothing about computers need
  654. handholding: doing things for them which they could easily do
  655. themselves but don't know how.
  656.  
  657.    Such services could be provided by companies that sell just
  658. hand-holding and repair service.  If it is true that users would
  659. rather spend money and get a product with service, they will also be
  660. willing to buy the service having got the product free.  The service
  661. companies will compete in quality and price; users will not be tied to
  662. any particular one.  Meanwhile, those of us who don't need the service
  663. should be able to use the program without paying for the service.
  664.  
  665.      "You cannot reach many people without advertising, and you must
  666.      charge for the program to support that."
  667.  
  668.      "It's no use advertising a program people can get free."
  669.  
  670.    There are various forms of free or very cheap publicity that can be
  671. used to inform numbers of computer users about something like GNU. 
  672. But it may be true that one can reach more microcomputer users with
  673. advertising.  If this is really so, a business which advertises the
  674. service of copying and mailing GNU for a fee ought to be successful
  675. enough to pay for its advertising and more.  This way, only the users
  676. who benefit from the advertising pay for it.
  677.  
  678.    On the other hand, if many people get GNU from their friends, and
  679. such companies don't succeed, this will show that advertising was not
  680. really necessary to spread GNU.  Why is it that free market advocates
  681. don't want to let the free market decide this?
  682.  
  683.      "My company needs a proprietary operating system to get a
  684.      competitive edge."
  685.  
  686.    GNU will remove operating system software from the realm of
  687. competition.  You will not be able to get an edge in this area, but
  688. neither will your competitors be able to get an edge over you.  You
  689. and they will compete in other areas, while benefitting mutually in
  690. this one.  If your business is selling an operating system, you will
  691. not like GNU, but that's tough on you.  If your business is something
  692. else, GNU can save you from being pushed into the expensive business
  693. of selling operating systems.
  694.  
  695.    I would like to see GNU development supported by gifts from many
  696. manufacturers and users, reducing the cost to each.
  697.  
  698.      "Don't programmers deserve a reward for their creativity?"
  699.  
  700.    If anything deserves a reward, it is social contribution. 
  701. Creativity can be a social contribution, but only in so far as society
  702. is free to use the results.  If programmers deserve to be rewarded for
  703. creating innovative programs, by the same token they deserve to be
  704. punished if they restrict the use of these programs.
  705.  
  706.      "Shouldn't a programmer be able to ask for a reward for his
  707.      creativity?"
  708.  
  709.    There is nothing wrong with wanting pay for work, or seeking to
  710. maximize one's income, as long as one does not use means that are
  711. destructive.  But the means customary in the field of software today
  712. are based on destruction.
  713.  
  714.    Extracting money from users of a program by restricting their use
  715. of it is destructive because the restrictions reduce the amount and
  716. the ways that the program can be used.  This reduces the amount of
  717. wealth that humanity derives from the program.  When there is a
  718. deliberate choice to restrict, the harmful consequences are deliberate
  719. destruction.
  720.  
  721.    The reason a good citizen does not use such destructive means to
  722. become wealthier is that, if everyone did so, we would all become
  723. poorer from the mutual destructiveness.  This is Kantian ethics; or,
  724. the Golden Rule.  Since I do not like the consequences that result if
  725. everyone hoards information, I am required to consider it wrong for
  726. one to do so.  Specifically, the desire to be rewarded for one's
  727. creativity does not justify depriving the world in general of all or
  728. part of that creativity.
  729.  
  730.      "Won't programmers starve?"
  731.  
  732.    I could answer that nobody is forced to be a programmer.  Most of
  733. us cannot manage to get any money for standing on the street and
  734. making faces.  But we are not, as a result, condemned to spend our
  735. lives standing on the street making faces, and starving.  We do
  736. something else.
  737.  
  738.    But that is the wrong answer because it accepts the questioner's
  739. implicit assumption: that without ownership of software, programmers
  740. cannot possibly be paid a cent.  Supposedly it is all or nothing.
  741.  
  742.    The real reason programmers will not starve is that it will still be
  743. possible for them to get paid for programming; just not paid as much as
  744. now.
  745.  
  746.    Restricting copying is not the only basis for business in software.
  747.  It is the most common basis because it brings in the most money.  If
  748. it were prohibited, or rejected by the customer, software business
  749. would move to other bases of organization which are now used less
  750. often.  There are always numerous ways to organize any kind of
  751. business.
  752.  
  753.    Probably programming will not be as lucrative on the new basis as
  754. it is now.  But that is not an argument against the change.  It is not
  755. considered an injustice that sales clerks make the salaries that they
  756. now do.  If programmers made the same, that would not be an injustice
  757. either.  (In practice they would still make considerably more than
  758. that.)
  759.  
  760.      "Don't people have a right to control how their creativity is
  761.      used?"
  762.  
  763.    "Control over the use of one's ideas" really constitutes control
  764. over other people's lives; and it is usually used to make their lives
  765. more difficult.
  766.  
  767.    People who have studied the issue of intellectual property rights
  768. carefully (such as lawyers) say that there is no intrinsic right to
  769. intellectual property.  The kinds of supposed intellectual property
  770. rights that the government recognizes were created by specific acts of
  771. legislation for specific purposes.
  772.  
  773.    For example, the patent system was established to encourage
  774. inventors to disclose the details of their inventions.  Its purpose
  775. was to help society rather than to help inventors.  At the time, the
  776. life span of 17 years for a patent was short compared with the rate of
  777. advance of the state of the art.  Since patents are an issue only
  778. among manufacturers, for whom the cost and effort of a license
  779. agreement are small compared with setting up production, the patents
  780. often do not do much harm.  They do not obstruct most individuals who
  781. use patented products.
  782.  
  783.    The idea of copyright did not exist in ancient times, when authors
  784. frequently copied other authors at length in works of non-fiction. 
  785. This practice was useful, and is the only way many authors' works have
  786. survived even in part.  The copyright system was created expressly for
  787. the purpose of encouraging authorship.  In the domain for which it was
  788. invented--books, which could be copied economically only on a printing
  789. press--it did little harm, and did not obstruct most of the individuals
  790. who read the books.
  791.  
  792.    All intellectual property rights are just licenses granted by
  793. society because it was thought, rightly or wrongly, that society as a
  794. whole would benefit by granting them.  But in any particular
  795. situation, we have to ask: are we really better off granting such
  796. license?  What kind of act are we licensing a person to do?
  797.  
  798.    The case of programs today is very different from that of books a
  799. hundred years ago.  The fact that the easiest way to copy a program is
  800. from one neighbor to another, the fact that a program has both source
  801. code and object code which are distinct, and the fact that a program
  802. is used rather than read and enjoyed, combine to create a situation in
  803. which a person who enforces a copyright is harming society as a whole
  804. both materially and spiritually; in which a person should not do so
  805. regardless of whether the law enables him to.
  806.  
  807.      "Competition makes things get done better."
  808.  
  809.    The paradigm of competition is a race: by rewarding the winner, we
  810. encourage everyone to run faster.  When capitalism really works this
  811. way, it does a good job; but its defenders are wrong in assuming it
  812. always works this way.  If the runners forget why the reward is
  813. offered and become intent on winning, no matter how, they may find
  814. other strategies--such as, attacking other runners.  If the runners
  815. get into a fist fight, they will all finish late.
  816.  
  817.    Proprietary and secret software is the moral equivalent of runners
  818. in a fist fight.  Sad to say, the only referee we've got does not seem
  819. to object to fights; he just regulates them ("For every ten yards you
  820. run, you can fire one shot").  He really ought to break them up, and
  821. penalize runners for even trying to fight.
  822.  
  823.      "Won't everyone stop programming without a monetary incentive?"
  824.  
  825.    Actually, many people will program with absolutely no monetary
  826. incentive.  Programming has an irresistible fascination for some
  827. people, usually the people who are best at it.  There is no shortage
  828. of professional musicians who keep at it even though they have no hope
  829. of making a living that way.
  830.  
  831.    But really this question, though commonly asked, is not appropriate
  832. to the situation.  Pay for programmers will not disappear, only become
  833. less.  So the right question is, will anyone program with a reduced
  834. monetary incentive?  My experience shows that they will.
  835.  
  836.    For more than ten years, many of the world's best programmers
  837. worked at the Artificial Intelligence Lab for far less money than they
  838. could have had anywhere else.  They got many kinds of non-monetary
  839. rewards: fame and appreciation, for example.  And creativity is also
  840. fun, a reward in itself.
  841.  
  842.    Then most of them left when offered a chance to do the same
  843. interesting work for a lot of money.
  844.  
  845.    What the facts show is that people will program for reasons other
  846. than riches; but if given a chance to make a lot of money as well,
  847. they will come to expect and demand it.  Low-paying organizations do
  848. poorly in competition with high-paying ones, but they do not have to
  849. do badly if the high-paying ones are banned.
  850.  
  851.      "We need the programmers desperately.  If they demand that we
  852.      stop helping our neighbors, we have to obey."
  853.  
  854.    You're never so desperate that you have to obey this sort of demand. 
  855. Remember: millions for defense, but not a cent for tribute!
  856.  
  857.      "Programmers need to make a living somehow."
  858.  
  859.    In the short run, this is true.  However, there are plenty of ways
  860. that programmers could make a living without selling the right to use
  861. a program.  This way is customary now because it brings programmers
  862. and businessmen the most money, not because it is the only way to make
  863. a living.  It is easy to find other ways if you want to find them. 
  864. Here are a number of examples.
  865.  
  866.    A manufacturer introducing a new computer will pay for the porting
  867. of operating systems onto the new hardware.
  868.  
  869.    The sale of teaching, hand-holding and maintenance services could
  870. also employ programmers.
  871.  
  872.    People with new ideas could distribute programs as freeware, asking
  873. for donations from satisfied users, or selling hand-holding services. 
  874. I have met people who are already working this way successfully.
  875.  
  876.    Users with related needs can form users' groups, and pay dues.  A
  877. group would contract with programming companies to write programs that
  878. the group's members would like to use.
  879.  
  880.    All sorts of development can be funded with a Software Tax:
  881.  
  882.      Suppose everyone who buys a computer has to pay x percent of the
  883.      price as a software tax.  The government gives this to an agency
  884.      like the NSF to spend on software development.
  885.  
  886.      But if the computer buyer makes a donation to software development
  887.      himself, he can take a credit against the tax.  He can donate to
  888.      the project of his own choosing--often, chosen because he hopes to
  889.      use the results when
  890.  
  891.      it is done.  He can take a credit for any amount of donation up
  892.      to the total tax he had to pay.
  893.  
  894.      The total tax rate could be decided by a vote of the payers of
  895.      the tax, weighted according to the amount they will be taxed on.
  896.  
  897.      The consequences:
  898.  
  899.         * The computer-using community supports software development.
  900.  
  901.         * This community decides what level of support is needed.
  902.  
  903.         * Users who care which projects their share is spent on can
  904.           choose this for themselves.
  905.  
  906.    In the long run, making programs free is a step toward the
  907. post-scarcity world, where nobody will have to work very hard just to
  908. make a living.  People will be free to devote themselves to activities
  909. that are fun, such as programming, after spending the necessary ten
  910. hours a week on required tasks such as legislation, family counseling,
  911. robot repair and asteroid prospecting.  There will be no need to be
  912. able to make a living from programming.
  913.  
  914.    We have already greatly reduced the amount of work that the whole
  915. society must do for its actual productivity, but only a little of this
  916. has translated itself into leisure for workers because much
  917. nonproductive activity is required to accompany productive activity. 
  918. The main causes of this are bureaucracy and isometric struggles
  919. against competition.  Free software will greatly reduce these drains
  920. in the area of software production.  We must do this, in order for
  921. technical gains in productivity to translate into less work for us.
  922.  
  923.